gtk-demo: Fix incorrect use of g_strdup_printf
authorRobert Ancell <robert.ancell@canonical.com>
Mon, 25 Nov 2019 21:11:28 +0000 (10:11 +1300)
committerRobert Ancell <robert.ancell@canonical.com>
Mon, 25 Nov 2019 21:11:28 +0000 (10:11 +1300)
Was broken in a refactoring in 4a2f313

demos/gtk-demo/font_features.c

index 3fdc0ec55818dfd77952a9834b22720ba05aa02a..ebc99c0f9963757940c90b36f6f5a99626e84a6e 100644 (file)
@@ -880,7 +880,7 @@ add_instance (hb_face_t    *face,
   name_id = hb_ot_var_named_instance_get_subfamily_name_id (face, index);
   hb_ot_name_get_utf8 (face, name_id, HB_LANGUAGE_INVALID, &name_len, name);
 
-  instance->name = g_strdup_printf (name);
+  instance->name = g_strdup (name);
   instance->index = index;
 
   g_hash_table_add (instances, instance);